import { createRouter, createWebHistory } from 'vue-router'
import Category from '@/views/category/index.vue'

export default createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      component: Category,
    },
    {
      path: '/subcategory/:id',
      component: () => import('@/views/subcategory/index.vue'),
    },
    {
      path: '/detail/:id',
      component: () => import('@/views/detail/index.vue'),
    },
  ],
})
